<!-- 个人中心头部 -->
<div class="user-detail">   
    <?php
            $user_info          = session_get(UserEnum::USER_INFO_SESSION_KEY);
            $datpende           = UserService::instance()->UserAccountgains();//投资收益中的金额
            $UserExt            = IndexService::instance()->UserExtendone();
            $user               = UserService::instance()->GetUserInformation();

   ?>
    <div class="main">
        <div class="detail">
            <div class="user-img left">
                <img src="{{$user_info->avatar}}" alt="" >
            </div>
            <div class="user-cen left">
                <div>
                    您好，<span>
                        @if(preg_match('/^1[34578]\d{9}$/',session_get(UserEnum::USER_INFO_USER_NAME)))
                            {{substr_replace($user_info->mobile,'****',3,4)}}
                        @else
                            {{$user_info->user_name}}
                        @endif
                        </span>
                </div>
                <div class="last">
                    <div class="a">
                        @if(empty($user->id_card))
                            <a href="/username_auth_one" class="span-1"></a><span>请实名认证</span>
                        @else
                            <a href="javascript:;" class="span-no-1"></a><span>已经实名认证</span>
                        @endif
                    </div>
                    <div class="a"><a href="#" class="span-2"></a><span>手机已绑定</span></div>
                    <div class="a">
                        @if(empty($user->pay_pwd))
                            <a href="/username_auth_one" class="span-3"></a><span>请设置支付密码</span>
                        @else
                            <a href="javascript:;" class="span-no-3"></a><span>支付密码已设置</span>
                        @endif
                    </div>
                </div>
            </div>
            <div class="user-asset left">
                <div class="left">累计净收益 ：<span>￥<?php if(!empty($datpende)){ echo round("$datpende",2);}else{echo"0.00";}?></span></div>
                <div class="left">可用余额 ：<span>￥<?php if(!empty($UserExt->user_balance)){ echo round("$UserExt->user_balance",2);}else{echo"0.00";}?></span></div>
            </div>
            <div class="user-btn right">
                <a href="/user_money" class="btn user-recharge">充值</a>
                <a href="/user_money_" class="btn user-cash">提现</a>
            </div>
        </div>
    </div>
</div>
<script src="./resource/js/showBo.js"></script>